#!/bin/bash

if [[ "x$1" = "x" ]]
then
    echo "specify date like '2013-12-12 23:14:58' as argument"
    exit 1
fi

mysql -uopenstack -popenstack vmstats -e "delete from vmstats where time > '$1'"

